﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="AdventureWorks.Cinema.Client.Rss._Default" Culture="auto" UICulture="auto"%>
<asp:Content ID="RssServiceContent" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
    <div>
        <asp:Label ID="TitleLabel" runat="server" CssClass="normalbold" Text="<%$ Resources:TitleLabelResource1.Text %>"></asp:Label><br />
        <br />
        <asp:Label ID="DescriptionLabel" runat="server" CssClass="normal" Text="<%$ Resources:DescriptionLabelResource1.Text %>"></asp:Label><br />
        <asp:HyperLink ID="NewsRssFeedLink" runat="server" NavigateUrl="~/News.aspx" Text="<%$ Resources:NewsRssFeedLinkResource1.Text %>" CssClass="normal"></asp:HyperLink>
        <asp:HyperLink ID="NewsRssFeedImageLink" runat="server" CssClass="normal" ImageUrl="~/Images/rss.jpg"
            NavigateUrl="~/News.aspx"></asp:HyperLink>&nbsp;
        <br />
        <asp:HyperLink ID="MoviesRssFeedLink" runat="server" NavigateUrl="~/Movies.aspx" Text="<%$ Resources:MoviesRssFeedLinkResource1.Text %>" CssClass="normal"></asp:HyperLink>
        <asp:HyperLink ID="MoviesRssFeedImageLink" runat="server" CssClass="normal" ImageUrl="~/Images/rss.jpg"
            NavigateUrl="~/Movies.aspx"></asp:HyperLink><br /><br />
   </div>
        <asp:LoginView ID="RssLogOnView" runat="server">
            <LoggedInTemplate>
                <asp:LoginName ID="RssLoginName" runat="server" CssClass="normal" FormatString='<%$ Resources:RssLoginNameResource1.Text %>' />
                <br />
                <asp:Label ID="RssPersonalizedMoviesDescriptionLabel" runat="server" CssClass="normal" Text="<%$ Resources:RssPersonalizedMoviesDescriptionLabelResource1.Text %>"></asp:Label><br />
                <asp:HyperLink ID="PersonalizedMoviesRssFeedLink" runat="server" NavigateUrl="Movies.aspx" CssClass="normal" Text="<%$ Resources:PersonalizedMoviesRssFeedLinkResource1.Text %>"></asp:HyperLink>
                <asp:HyperLink ID="PersonalizedMoviesRssFeedImageLink" runat="server" CssClass="normal" ImageUrl="~/Images/rss.jpg"
                    NavigateUrl="Movies.aspx"></asp:HyperLink>
                <br />
                <asp:LoginStatus ID="RssLoginStatus" runat="server" CssClass="normal" LoginText="<%$ Resources:RssLoginStatusResource1.LoginText %>" LogoutText="<%$ Resources:RssLoginStatusResource1.LogoutText %>" />
            </LoggedInTemplate>
            <AnonymousTemplate>
                <asp:Label ID="RssDescriptionLabel" runat="server" Text="<%$ Resources:RssDescriptionLabelResource1.Text %>" CssClass="normal"></asp:Label><br />
                <br />
                <asp:Login ID="RssLogin" runat="server" MembershipProvider="CinemaMembershipProvider" FailureText="<%$ Resources:RssLoginResource1.FailureText %>">
                    <LayoutTemplate>
                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0">
                                        <tr>
                                            <td>
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="normal" Text="<%$ Resources:UserNameLabelResource1.Text %>"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" Width="150px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="normal" Text="<%$ Resources:PasswordLabelResource1.Text %>"></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                &nbsp;<asp:Label ID="FailureText" runat="server" CssClass="error" EnableViewState="False"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:Button ID="LogOnButton" runat="server" CommandName="Login" CssClass="button"
                                                    Text="<%$ Resources:LogOnButtonResource1.Text %>" ValidationGroup="Login" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </AnonymousTemplate>
        </asp:LoginView>
</asp:Content>